/** 公共接口 **/
import { base_uri } from '../request.config';

const commonApi = {
    stationList: 'station/list', // 驿站列表
    stationDetail: 'station/detail', // 驿站详情
    stationUpdate: 'station/update', // 驿站编辑
    stationByName: 'station/names', // 驿站编辑
};

const common: any = Object.keys(commonApi)
    .reduce((origin, item) => {
        origin[item] = `${base_uri}/${commonApi[item]}`;
        return origin; 
    }, {})

export default common;
